[]
        
(Showing Draft Content)

FarPoint.Web.Spread.SheetView.SortColumns

SortColumns Method

SortColumns(int, bool)

Sorts all the columns in the sheet according to the specified parameters.

Declaration
public bool SortColumns(int keyRow, bool ascending)
Public Function SortColumns(keyRow As Integer, ascending As Boolean) As Boolean
Parameters
Type Name Description
int keyRow

Row whose values are compared during sorting

bool ascending

Whether the sort is ascending

Returns
Type Description
bool

SortColumns(int, bool, IComparer)

Sorts all the columns in the sheet according to the specified parameters.

Declaration
public bool SortColumns(int keyRow, bool ascending, IComparer comparer)
Public Function SortColumns(keyRow As Integer, ascending As Boolean, comparer As IComparer) As Boolean
Parameters
Type Name Description
int keyRow

Row whose values are compared during sorting

bool ascending

Whether the sort is ascending

IComparer comparer

IComparer object used to compare the values

Returns
Type Description
bool

SortColumns(int, int, SortInfo[])

Sorts a range of columns in the sheet according to the specified parameters.

Declaration
public bool SortColumns(int column, int columnCount, SortInfo[] sortInfo)
Public Function SortColumns(column As Integer, columnCount As Integer, sortInfo As SortInfo()) As Boolean
Parameters
Type Name Description
int column

Starting column index (the start of the range of columns to sort)

int columnCount

Number of columns in the range to sort

SortInfo[] sortInfo

Array of SortInfo objects that contain the row indexes and the order of sorting

Returns
Type Description
bool